home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Visual Basic Toolbox
/
Visual Basic Toolbox (P.I.E.)(1996).ISO
/
error_hn
/
mcbundle
/
3dmeter
/
t2w_3dm.bas
next >
Wrap
BASIC Source File
|
1995-07-17
|
2KB
|
41 lines
Option Explicit
' structure for 3D-Meter
Type tag3DMeter
CrtValue As Long 'current value
MaxValue As Long 'maximum value
BackColor As Long
ForeColor As Long
Polygon As Integer '0 : rectangle, 1 : triangle, 2 : trapezium, 3 : ellipse , 4 : bars
BarSize As Integer 'size of a bar (polygon = 4) (in pixel : min=1,max=20,default=10)
SpaceBars As Integer 'space between bars (polygon = 4) (in pixel : min=1,max=4,default=2)
Direction As Integer '0 : horizontal, other : vertical
ThreeD As Integer '-1 : indented, 1 : raised
Thickness As Integer
Percent As Integer 'internal use, do not change
OldPolygon As Integer 'internal use, do not change
OldDirection As Integer 'internal use, do not change
OldThreeD As Integer 'internal use, do not change
HatchBrush As Integer '-1 : solid brush, 0 : hor., 1 : ver., 2 : downward diag., 3 : upward diag., 4 : cross, 5 : diag.cross
End Type
Rem Don't Remove It
Declare Sub c3D Lib "time2win.dll" (Ctl As Control, ByVal Method As Integer, ByVal Thickness As Integer)
Declare Sub c3DMeter Lib "time2win.dll" (hCtl As Control, Meter As tag3DMeter)
Declare Function cGetVersion Lib "time2win.dll" () As Single
Declare Sub cTypesCopy Lib "time2win.dll" (TypeSrc As Any, TypeDst As Any, ByVal lenTypeSrc As Integer)
Sub Main ()
' check if the correct version
If (cGetVersion() < 5.02) Then
MsgBox "You must have the version 5.02 of 'TIME TO WIN'"
End
End If
Load Form1
Form1.Show
End Sub